package com.chalk.vo;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class NewShopOrderInformationVo {

    /**
     * 订单信息表id
     */
    @ApiModelProperty(name = "id", value = "id")
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 客户id
     */
    @ApiModelProperty(name = "customerId", value = "客户id")
    @TableField("customer_id")
    private String customerId;

    /**
     * 客户名称
     */
    @ApiModelProperty(name = "customerName", value = "客户名称")
    @TableField("customer_name")
    private String customerName;

    /**
     * 员工id
     */
    @ApiModelProperty(name = "staffId", value = "员工id")
    @TableField("staff_id")
    private String staffId;

    /**
     * 开单员工
     */
    @ApiModelProperty(name = "billingStaff", value = "开单员工")
    @TableField("billing_staff")
    private String billingStaff;

    /**
     * 订单号
     */
    @ApiModelProperty(name = "orderId", value = "订单号")
    @TableField("order_id")
    private String orderId;

    /**
     * 订单金额
     */
    @ApiModelProperty(name = "orderMoney", value = "订单金额")
    @TableField("order_money")
    private BigDecimal orderMoney;

    /**
     * 是否开发票( 0 : 不开  1 开)
     */
    @ApiModelProperty(name = "invoice", value = "是否开发票( 0 : 不开  1 开)")
    @TableField("invoice")
    private Integer invoice;

    /**
     * 支付渠道
     */
    @ApiModelProperty(name = "payChannel", value = "支付渠道")
    @TableField("pay_channel")
    private Integer payChannel;

    /**
     * 订单状态 (暂定 0:新建 1:已支付)
     */
    @ApiModelProperty(name = "orderType", value = "订单状态 (暂定 0:新建 1:已支付)")
    @TableField("order_type")
    private Integer orderType;

    /**
     * 第三方支付流水号
     */
    @ApiModelProperty(name = "outTradeNo", value = "第三方支付流水号")
    @TableField("out_trade_no")
    private String outTradeNo;

    /**
     * 支付时间
     */
    @ApiModelProperty(name = "paymentTime", value = "支付时间")
    @TableField("payment_time")
    private Date paymentTime;

    /**
     * 门店id
     */
    @ApiModelProperty(name = "shopId", value = "门店id")
    @TableField("shop_id")
    private String shopId;

    /**
     * 开单日期
     */
    @ApiModelProperty(name = "shopOrderTime", value = "开单日期")
    @TableField("shop_order_time")
    private String shopOrderTime;

    /**
     * 门店开单类型  (0: 收银开单  1 : 维修开单)
     */
    @ApiModelProperty(name = "shopOrderType", value = "门店开单类型  (0: 收银开单  1 : 维修开单)")
    @TableField("shop_order_type")
    private Integer shopOrderType;

    /**
     * 创建时间
     */
    @ApiModelProperty(name = "creationTime", value = "创建时间")
    @TableField("creation_time")
    private Date creationTime;

    /**
     * 详情集合
     */
    private List<NewShopOrderDetailsVo> newShopOrderDetailsVo;
    private static final long serialVersionUID = 1L;
}
